import Cookies from 'js-cookie'//npm i js-cookie
// 设置token
export let setCookie = (token)=>{
   return Cookies.set('hgtoken', token, { expires: 1})
}
// 获取token
export let getCookie = ()=>{
    return Cookies.get('hgtoken')
}
// 移除token
export let removeCookie = ()=>{
    return Cookies.remove('hgtoken')
}